<!--
Copyright 2018 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================
-->

<!doctype html>
<head>
  <link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.cyan-teal.min.css" />
</head>

<body>
  <style>
    #review-text {
      font-size: 120%;
      width: 60%;
      height: 200px;
    }
  </style>
  <h1>
    TensorFlow.js Layers: Sentiment Analysis Demo
  </h1>
  <hr>
  <div class="create-model">
    <button id="load-pretrained-remote" style="display:none">Load hosted pretrained model</button>
    <button id="load-pretrained-local" style="display:none">Load local pretrained model</button>
  </div>
  <div>
    <div>
      <span>Model type: </span>
      <span id="modelType"></span>
    </div>
    <div>
      <span>Vocabulary size: </span>
      <span id="vocabularySize"></span>
    </div>
    <div>
      <span>Max length: </span>
      <span id="maxLen"></span>
    </div>
  </div>
  <hr>
  <div>
    <select id="test-example-select" class="form-control">
      <option value="positive">Positive example</option>
      <option value="negative">Negative example</option>
    </select>
  </div>
  <div>
    <textarea id="review-text"></textarea>
  </div>
  <hr>
  <div>
    <span id="status">Standing by.</span>
  </div>

  <script src='index.js'></script>
</body>
